package com.kx.demo.jdk.collection;

import java.util.Stack;

/**
 * @author kx
 * @date 2020/4/11
 */
public class StackDemo {

    public static void main(String[] args) {

        Stack<String> stack1 = new Stack<>();
        KxStack<String> stack = new KxStack<>();
        stack.push("1");
        stack.push("2");
        stack.push("3");
        stack.push("4");

        System.out.println(stack.search("2"));
        System.out.println(stack.pop());
        System.out.println(stack.size());
//        System.out.println(stack.peek());

    }

}
